package fr.paris.lutece.plugins.xbmc.web.video;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

import fr.paris.lutece.plugins.generic.web.AbstractJspBean;
import fr.paris.lutece.portal.service.template.AppTemplateService;
import fr.paris.lutece.util.html.HtmlTemplate;
import java.util.Date;

/**
 * The Video Jsp Bean
 * @author jchaline
 */
public class VideoJspBean extends AbstractJspBean {

    public static final String RIGHT_MANAGE_VIDEOS = "VIDEOS_MANAGEMENT";

    private static final String TEMPLATE_MANAGE_VIDEOS = "admin/plugins/xbmc/manage_videos.html";
	
    /**
     * Get the manage videos page
     *
     * @param request http the request
     * @return the page with videos list
     */
    public String getManageVideos( HttpServletRequest request )
    {
    	Map<String,Object> model = super.getManageBeansModel( request );
    
    	HtmlTemplate template = AppTemplateService.getTemplate( TEMPLATE_MANAGE_VIDEOS, getLocale(  ), model );

        return getAdminPage( template.getHtml(  ) );
    }

}